<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>修改发布人</title>
    <?php require 'templates/common/head.html'; ?>
    <style type="text/css">
        .divleft{width: 20%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divleft2{width: 9%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divright{ width: 12%; float:right; text-align: right;}
    </style>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">修改发布人</h3></div>
        <div class="panel-body">
            <div  style="width: 30%; float: left">
                <form action="" method="post">
                    用户名称:<input type="text" name="name">
                    <input type="hidden" name="action" value="search">
                    <input type="submit" value="搜索" id="submit">
                </form>
            </div>
        </div>
        <div class="panel-body">

            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="text-justify col-sm-10" style="width:100%;">
                                <div class="col-sm-3"><b  >用户名</b></div>
                                <div class="col-sm-2"><b  >电话</b></div>
                                <div class="col-sm-3"><b  >头像</b></div>
                                <div class="col-sm-2"><b  >操作</b></div>

                            </div>
                        </div>
                    </div>
                </div>
                <?php if($doUser):?>
                <div class="panel panel-default">
                    <?php foreach($doUser as $key =>$value):?>
                    <div class="panel-heading"  style=" <?php if($key%2==0){echo 'background-color:#DFF0D8;';}else{ echo 'border-top: solid 2px #ffffff;';}?>">
                    <div class="row">
                        <div class="col-xs-4 text-justify" style="width:100%;">
                            <div class="col-sm-3"><span><?= $value['name']?></span></div>
                            <div class="col-sm-2"><span><?= $value['telephone']?></span></div>
                            <div class="col-xs-3 col-sm-3">
                                <img src="<?=$value['头像']?>" style="width:150px;" />
                            </div>
                            <div class="col-sm-2">
                                <a class="btn btn-primary btn-xs-1" href="index.php?m=case_manage&a=update_user&id=<?=$caseId?>&userId=<?php echo $value['id']?>" >确定</a>
                            </div>

                        </div>
                    </div>
                </div>
                <?php endforeach; ?>
            </div>
                <?php endif; ?>
        </div>
            <!--<div></div>-->
    </div>
</div>
</div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>
<script type="text/javascript">
    $(function(){
        $("#submit").click(function(){
            var name = $("input[name='name']").val();
            if(!name)
            {
                alert('请输入用户名!');
                return false;
            }
        });
    })
</script>